home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 24
/
CU Amiga Magazine's Super CD-ROM 24 (1998)(EMAP Images)(GB)(Track 1 of 2)[!][issue 1998-07].iso
/
CUCD
/
Utilities
/
afortune
/
AFortune.doc
< prev
next >
Wrap
Text File
|
1992-06-05
|
6KB
|
159 lines
AFortune 2.0
5-Jun-1992
©1992 by Ives Aerts
0.Preface
=========
One of the (few) things I like about the I*M mainframe at our university
is the fortune cookie program. I liked them so much that I wrote my own
fortune cookie program for the Amiga and collected a large database of
fortunes. In the meantime I upgraded to 2.0 and other fortune programs
became available, but none of them suited me so I wrote a 2.0 specific
version.
1.Features
==========
Why would anyone want yet another fortune cookie program ? Here's some
reasons:
· has a LARGE database of fortunes (±1.2 Mb uncrunched, ±600K crunched)
· ability to crunch fortune files (save hd space)
· uses multiple fortune files (faster)
· fortunes in CLI window or nicely centered in a window on the workbench
· custom font usable
· ability to show last fortune again (or trace it back in the database)
2.Legal status
==============
AFortune 2.0 is (c) 1992 by Ives Aerts and may only be distributed in
its complete, unmodified form (program and docs). Distribution is only
allowed in a non-profit way.
This program is shareware. If you like and/or use this program I would
appreciate it if you send me a contribution of $10 or 300Bfr (Belgian
Francs). Please send money by international money order, EuroCheck (in
Belgian Francs) or cash, 'cos it's quite expensive for me to cash in other
checks. My address can be found at the end of the document.
I went through a lot of trouble collecting and editing the database,
(collecting from different sites, removing duplicate entries, converting to
a usable format, etc.) but the fortune files are public domain. If you
want to use them yourself then please mention me in your document and/or
consider paying me a shareware contribution for the effort I made.
3.System requirements
=====================
To run AFortune you'll need OS 2.04 or higher, powerpacker.library and
reqtools.library (included in the package). Due to a bug in dos.library,
the 'last' and 'setenv' options are only usable with dos.library V37 or
higher (you can find out which version you have by executing the command
'version dos.library').
4.Usage
=======
AFortune can be run from workbench or from the CLI. Just drag it in your
WBStartup drawer to get a random fortune each time you start up.
Following tooltypes and/or CLI arguments are available:
· LAST - repeats the last fortune (see section 5).
· SETENV - remembers the current fortune (see section 5).
· WAIT - (only available from the CLI) Waits for a keypress after
displaying the fortune.
· WINDOW - use a borderless window centered on the visible part of the
workbench to display the fortune in. Clicking in the window
will make it dissapear.
. ? - (CLI only) display argument template.
. ?? - (CLI only) display usage.
· FONT=fontname.font
SIZE=fontsize
- display the fortune in the specified font. Note that this forces
the fortune to be displayed in a window and that both arguments
(font name and size) must be specified.
· DIR=dirname
- look for the data files in the designated directory. When not
specified, AFortune will look for data files in the current
directory. Data files are recognized by their '.frt' extension.
· CNT=number
- use the data files named '01.frt' to 'number.frt' where number is
less than or equal to 99. When not specified, AFortune will have
to scan the directory for files ending in '.frt', which may take
some time.
5.Environment variables
=======================
When the 'setenv' switch is specified, AFortune will set two environment
variables to remember the current fortune. 'Fortune_file' contains the name
of the file that contains the last fortune. 'Fortune_offset' is the binary
offset in that file of the last fortune. You can use these to look up the
fortune in the database yourself (use 'getenv' to read the contents of the
environment variables) or use the 'last' switch to force AFortune to
redisplay the last fortune.
6.Datafile format
=================
The datafiles are the files with the .frt suffix. These can be crunched
with Nico François' excellent PowerPacker to save diskspace. The
decrunched files consist of the fortunes, separated with a ¤ character
(ascii 164, alt-y). The files must begin and end with that character. You
can make them as long as you wish but longer files will take more time to
decrunch.
If you add one or more data files with new fortunes then please send a
copy of them to me.
NOTE:
· the ¤ character HAS to be the last character of the fortune file so
don't put a carriage return after it !
· unless you use the 'count' option, this program will try to use ALL the
files with suffix .frt from the directory you specify (or current
directory). So make sure you don't have any other files with that
suffix or you may get a lot of garbage on your screen.
7.Contacting the author
=======================
If you have any comments about this program then don't hesitate to let
me know. I can be reached until october '92 via e-mail on:
GHGAGAA at BLEKUL11.BITNET
ghgagaa@cc1.kuleuven.ac.be
My snail mail address:
Ives Aerts
Bareelstraat 36
2300 Turnhout
Belgium
Europe
***************************************************************************
I hope you enjoy the program ...
©1992 Ives Aerts
"she's walking in between you
she walks
circle
spins around you
she lives
on
looks" Pools in eyes - Throwing Muses